<?php
namespace org\GoApi;
use Exception;

class UserDetail {
  // 后台赠送群主房卡通知
  public static function OnZengRoomCard($Channel, $UserID, $KindID, $OldRoomCard, $NewRoomCard) { // 读取
    $retn = [];
    try {
      $data = CallGameSrv('UserDetail/OnZengRoomCard',[
        'Channel'     => $Channel,
        'UserID'      => $UserID,
        'KindID'      => $KindID,
        'OldRoomCard' => $OldRoomCard,
        'NewRoomCard' => $NewRoomCard,
      ]);
      $data = json_decode($data, true);
      if (!empty($data['Data'][0])) {
        $retn = $data['Data'][0];
      }
    } catch (Exception $e) {
      //
    }
    return $retn;
  }
}
